<?php

class Core_Form_Admin_Settings_General_Speed extends Core_Form_Admin_Settings_Base
{
	protected function _init()
	{
		$this -> setMeta(array(
				'name' => 'form_settings_speed',
				'title' => 'speed settings',
				'desc' => ''
		));

		$this -> addChild('@radio', 'site_speed_gzip-enable', array(
				'value' => 'on',
				'label' => 'gzip enable',
				'multiOptions' => array(
						'on' => 'yes',
						'off' => 'no',
				),
		));

		$this -> addChild('@select', 'site_speed_gzip-level', array(
				'value' => 1,
				'label' => 'gzip level',
				'multiOptions' => array(
						1 => 1,
						2 => 2,
						3 => 3,
						4 => 4,
						5 => 5,
						6 => 6,
						7 => 7,
						8 => 8,
						9 => 9
				),
		));

		$this -> addChild('@radio', 'site_speed_minify-js', array(
				'value' => 'on',
				'label' => 'minify js',
				'multiOptions' => array(
						'on' => 'yes',
						'off' => 'no',
				),
		));

		$this -> addChild('@radio', 'site_speed_minify-css', array(
				'value' => 'on',
				'label' => 'minify css',
				'multiOptions' => array(
						'on' => 'yes',
						'off' => 'no',
				),
		));

		/**
		 * buttons
		 */
		$this -> addChild('@group', 'buttons');

		$this -> buttons -> addChild('@submit', '_submit') -> addChild('@cancel', '_cancel');

	}

}
